package oocis.user;
import java.util.*;

public class userEnv {
	public LinkedList ulist;
	
	public userEnv()  {
		ulist = new LinkedList();
	}
	
	public boolean contain(perUser u) {
		return ulist.contains(u);
	}

	public void remove(perUser u) {
		ulist.remove(u);
	}

	public void add(perUser u) {
		ulist.add(u);
	}

	public boolean isEmpty() {
		return ulist.isEmpty();
	}

	public void clear() {
		ulist.clear();
	}

	public void combine(userEnv ue) {
		for(Iterator itr = ue.ulist.listIterator();itr.hasNext();)   {
			perUser tmp = (perUser)itr.next();
			if(!contain(tmp))  {
				add(tmp);
			}
		}
	}
}
